package com.jiajiankang.goods;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

import com.jiajiankang.R;
import com.jiajiankang.myspace.MyFavor;
import com.jiajiankang.shopcart.ShopCart;

public class Details extends ThreeButton {
	private Button btn_myfavor;
	private ImageButton btn_shopcart;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.details);
		Button DeliveryEnd_back = (Button) findViewById(R.id.details_back);
		DeliveryEnd_back.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Details.this, Goods.class);
				startActivity(intent);

			}
		});
		btn_myfavor=(Button)findViewById(R.id.details_collect);
		btn_myfavor.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(Details.this, MyFavor.class);
				startActivity(intent);
			}
		});
		btn_shopcart=(ImageButton)findViewById(R.id.details_addshopcart);
		btn_shopcart.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(Details.this, ShopCart.class);
				startActivity(intent);
			}
		});
		myClickHandler();

		three_details.setImageDrawable(getResources().getDrawable(R.drawable.three_btn2));
		three_details.setBackgroundColor(Color.parseColor("#ffffff"));
	
		
	}
  
}
